/*
 * @Author: tangxiaoxuan tangxiaoxuan@vchangyi.com
 * @Date: 2025-09-04 22:58:11
 * @LastEditors: tangxiaoxuan tangxiaoxuan@vchangyi.com
 * @LastEditTime: 2025-09-10 22:18:46
 * @FilePath: \JF_src4js\src\main.js
 * @Description:
 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Element from "element-ui";
import Watermark from "./components/Watermark.vue";
import "./permission";
import Print from "vue-print-nb";
import VueQuillEditor from "vue-quill-editor";
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";
Vue.use(VueQuillEditor);

Vue.use(Print);
Vue.use(Element);
// 注册水印插件
Vue.component("Watermark", Watermark);

// 全局设置 Element UI Dialog 组件默认不允许点击遮罩关闭
const originalDialog = Element.Dialog;
if (originalDialog && originalDialog.props) {
  originalDialog.props.closeOnClickModal.default = false;
}
import "element-ui/lib/theme-chalk/index.css";
Vue.config.productionTip = false;
import "./utils/public.css";
import SvgIcon from "./components/SvgIcon"; // 引入SvgIcon组件
import "./assets/icons";
import "lib-flexible/flexible";
Vue.component("svg-icon", SvgIcon);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
